import useRequest from "@/hooks/core/useRequest";

const request = useRequest('/api/user');

export function login(data: LoginDTO) {
    return request.post<LoginResult>('/login', data);
}